package com.yzd.learnjava.iniialization;

public class Demotion {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Demotion demotion = new Demotion();
		demotion.testDouble();
	}
	void testDouble(){
		double x = 0;
		System.out.println("double argument : ");
		f1(x); f2((float)x); f3((long)x); f4((int)x); f5((short)x); f6((byte)x); f7((char)x);
	}
	void f1(char x){System.out.print("f1(char) ");}
	void f1(byte x){System.out.print("f1(byte) ");}
	void f1(short x){System.out.print("f1(short) ");}
	void f1(int x){System.out.print("f1(int) ");}
	void f1(long x){System.out.print("f1(long) ");}
	void f1(float x){System.out.print("f1(float) ");}
	void f1(double x){System.out.print("f1(double) ");}
	
	void f2(char x){System.out.print("f2(char) ");}
	void f2(byte x){System.out.print("f2(byte) ");}
	void f2(short x){System.out.print("f2(short) ");}
	void f2(int x){System.out.print("f2(int) ");}
	void f2(long x){System.out.print("f2(long) ");}
	void f2(float x){System.out.print("f2(float) ");}
	
	
	void f3(short x){System.out.print("f3(short) ");}
	void f3(int x){System.out.print("f3(int) ");}
	void f3(long x){System.out.print("f3(long) ");}
	void f3(char x){System.out.print("f3(float) ");}
	void f3(byte x){System.out.print("f3(double) ");}
	
	void f4(int x){System.out.print("f4(int) ");}
	void f4(byte x){System.out.print("f4(long)");}
	void f4(char x){System.out.print("f4(float) ");}
	void f4(short x){System.out.print("f4(double) ");}
	
	void f5(short x){System.out.print("f5(long) ");}
	void f5(char x){System.out.print("f5(float) ");}
	void f5(byte x){System.out.print("f5(double) ");}
	
	void f6(byte x){System.out.print("f6(float) ");}
	void f6(char x){System.out.print("f6(double) ");}
	
	void f7(char x){System.out.print("f7(double) ");}

}
